import request from '@/utils/request'

// 重点区域列表
export const getKeyAreaList = (params) => {
  return request({
    method: 'get',
    url: '/data/area/list',
    params: params,
  })
}
// 新增重点区域
export const keyAreaAdd = (params) => {
  return request({
    method: 'post',
    url: '/data/area/add',
    data: params,
  })
}
// 更新重点区域
export const keyAreaUpdate = (params) => {
  return request({
    method: 'put',
    url: `/data/area/update`,
    data: params,
  })
}
// 删除重点区域
export const keyAreaDelete = (params) => {
  return request({
    method: 'delete',
    url: '/data/area/delete',
    params: params,
  })
}
// 重点区域详情
export const keyAreaDetail = (params) => {
  return request({
    method: 'get',
    url: '/data/area/get',
    params: params,
  })
}
